public class AnimalTest {
    public static void main(String[] args) {
        Animal animal=new Animal();
        Animal animal1=new Animal();
        animal.age=3;
        animal1.age=5;

        System.out.println(animal);
        // 比较俩对象是否相等
        System.out.println(animal==animal1);
        System.out.println(animal.equals(animal1));
    }
}
